{% init file_type = "group_list" %}
{% init ungrouped_count = 0 %}

<div class="grid-row">
    <div class="grid-item">
        <img src="/static/image/folder.gif"/>
        <a class="link" href="/note/recent_edit">最近更新</a>
    </div>
    <div class="grid-item">
        <img src="/static/image/folder.gif"/>
        <a class="link" href="/note/recent_created">最近创建</a>
    </div>
    <div class="grid-item">
        <img src="/static/image/folder.gif"/>
        <a class="link" href="/note/public">分享文章</a>
    </div>
    <div class="grid-item">
        <img src="/static/image/folder.gif"/>
        <a class="link" href="/note/ungrouped">未分类</a> {{ ungrouped_count }}
    </div>
    <div class="grid-item">
        <img src="/static/image/folder.gif"/>
        <a class="link" href="/note/removed">回收站</a>
    </div>
    {% for item in files %}
        <div class="grid-item">
            <img src="/static/image/folder.gif"/>
            <a class="link" href="/note/view?id={{item.id}}">{{item.name}}</a>
            {{item.size}}
        </div>
    {% end %}
</div>
